package edu.config.security;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * 密码不加密
 *
 * @date 11:25
 */
public class SimplePasswordEncoder implements PasswordEncoder {

    @Override
    public String encode(CharSequence rawPassword) {
        return rawPassword.toString();
    }

    @Override
    public boolean matches(CharSequence rawPassword, String encodedPassword) {
        return rawPassword.equals(encodedPassword);
    }
}
